home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3809 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.iastate.edu!pholland
  2. From: pholland@iastate.edu (Paul J Hollander)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Need little C Help! (How to make caracters apear on the same spot again and again?)
  5. Date: 24 Feb 1996 18:22:32 GMT
  6. Organization: Iowa State University, Ames, Iowa USA
  7. Message-ID: <4gnl18$rg6@news.iastate.edu>
  8. References: <4gjudo$i95@news.xs4all.nl> <1996Feb23.123038@mathematik.tu-muenchen.de>
  9. NNTP-Posting-Host: du139-206.cc.iastate.edu
  10.  
  11. In article <1996Feb23.123038@mathematik.tu-muenchen.de>,
  12. Thomas Ganter <ganterth@mathematik.tu-muenchen.de> wrote:
  13. >In article <4gjudo$i95@news.xs4all.nl>, vasquez@xs4all.nl (Joel Wijngaarde) writes:
  14. >|> Hello,
  15. >|> 
  16. >|> Can somebody tel me how i can make a counter in C wich counts at the same 
  17. >|> screen position. I'm mean something like the in the program 'Lha'. This 
  18. >|> program counts the bytes, that are (un)packed. The number of bytes 
  19. >|> increases on the same spot; NOT like this: 
  20. >|> 1 2 3 4 5 6 7 8 9 10 11 12 etc....
  21. >
  22. >Try out the CIS controll sequences. I don't have RKRM's at hand,
  23. >but there are command sequences like ESC[A, ESC[B, ... to move the
  24. >cursor around. If you have the RKRM's, inspect the console.device part,
  25. >else repost here for a compilation of important sequences.
  26.  
  27. I've been working through _Amiga C for Beginners_.  It has a list of
  28. escape sequences like \n for new line, \t for tab, etc.  One of them
  29. returned the cursor to the first position of the current line.  It might
  30. have been \s, but the book is at home instead of beside me.  You could
  31. print the count, go to the start of the line, print a series of spaces to
  32. blank the line, go to the start of the line again, print the new count,
  33. etc.
  34.  
  35. Paul Hollander    pholland@iastate.edu
  36. Behold the tortoise: he makes no progress unless he sticks his neck out.
  37.  
  38.